<?val('catalog.action.settings')?>
<!doctype html>
<html>
    <head>
        <title><?php App::ShowProperty('title')?></title>
        <meta charset="utf-8">
        <meta name="description" content="<?php App::ShowProperty('description')?>" />
        <meta name="keywords" content="<?php App::ShowProperty('keywords')?>" />

        <base href="<?php echo $base ?>" />

        <?if($favicon = App::GetRegistry()->obSettings->favicon){?>
            <link rel="shortcut icon" href="<?=$favicon?>" />
        <?}?>

        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600,700,400&subset=latin,cyrillic-ext' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" type="text/css" href="assets/css/style.css" />
        <?if($skin = App::GetRegistry()->obSettings->skin){?>
            <link href="assets/skins/<?=$skin?>/css/style.css" rel="stylesheet" type="text/css">
        <?}?>
        <link rel="stylesheet" type="text/css" href="assets/css/jquery.fancybox.css" />
        <link rel="stylesheet" type="text/css" href="assets/css/jquery.flipcountdown.css" />

        <script type="text/javascript" src="assets/js/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="jscripts/jquery.form.js"></script>
        <script type="text/javascript" src="assets/js/jquery.fancybox.js"></script>
        <script type="text/javascript" src="assets/js/jquery.carouFredSel-6.2.1.js"></script>
        <script type="text/javascript" src="assets/js/jquery.flipcountdown.js"></script>
        <script type="text/javascript" src="assets/js/jquery.formstyler.min.js"></script>
        <script type="text/javascript" src="assets/js/jquery.singlePageNav.js"></script>
        <script type="text/javascript" src="assets/js/action.js"></script>


        <!--[if IE 8]> <link href= "assets/css/ie.css" rel= "stylesheet" media= "all" /> <![endif]-->
        <!--[if lt IE 9]>
        <script>
            document.createElement('section');
        </script>
        <![endif]-->
    </head>
<body>
    <header class="header-wrap">
        <div class="nav-menu">
            <ul>
                <?mod('catalog.show.menu',array(
                    'mode'=>'list',
                    'order'=>'order by sort'
                ))?>
            </ul>
        </div>
        <div class="header">
            <a href="/" class="logo"><img src="<?=App::GetRegistry()->obSettings->logo?>"></a>
            <a href="mailto:<?=App::GetRegistry()->obSettings->email?>" class="cont-mail"><?=App::GetRegistry()->obSettings->email?></a>
            <div class="contact-phone">
                <?=App::GetRegistry()->obSettings->phones?>
            </div>
            <div class="head-button">
                <a href="#form_callback" class="robot-button form3 form">Заказать звонок</a>
            </div>
        </div>
    </header>

    <?mod('catalog.action.blocks')?>

    <footer class="footer">
        <div class="main-block">
            <a href="mailto:<?=App::GetRegistry()->obSettings->email?>" class="cont-mail-foot"><?=App::GetRegistry()->obSettings->email?></a>
            <div class="phones">
                <?=App::GetRegistry()->obSettings->phones?>
            </div>
            <div class="copy">
                <?=App::GetRegistry()->obSettings->copyright?>
                <div class="counter">
                    <?mod('infoblock.show.counter')?>
                </div>
            </div>
            <div class="foot-button">
                <a href="#form_callback" class="buy-robot form3 form">Заказать звонок</a>
            </div>
        </div>
    </footer>

    <?mod('catalog.action.forms_popup')?>

    <?if(App::GetRegistry()->skin_template){?>
        <?
        $ar_skins = array('beige','green','purple','red','white','yellow');
        $cur_skin = App::GetRegistry()->obSettings->skin;
        ?>
        <link href="/assets/css/page.css" rel="stylesheet" type="text/css">
        <script src="/assets/js/page.js"></script>

        <nav id="primary">
            <ul>
                <li>
                    <span style="display: none;">По умолчанию</span>
                    <a href="?skin=default"<?=!$cur_skin?' class="active"':''?>></a>
                </li>
                <?foreach($ar_skins as $skin){?>
                    <li>
                        <span style="display: none;"><?=$skin?></span>
                        <a href="?skin=<?=$skin?>"<?=$cur_skin==$skin?' class="active"':''?>></a>
                    </li>
                <?}?>
            </ul>
        </nav>
    <?}?>
    </body>
</html>
